package cn.dengta.webapp.trade.dao;

import java.util.List;

import cn.dengta.common.web.Page;
import cn.dengta.webapp.base.dao.BaseDao;
import cn.dengta.webapp.trade.entity.UserCallStatistics;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserCallStatisticsDao extends BaseDao<UserCallStatistics> {

	@Select("SELECT log.* FROM dt_user_call_statistics log JOIN dt_user u ON log.user_id = u.id ${ew.customSqlSegment}")
	Page<UserCallStatistics> findPage(Page<UserCallStatistics> page, @Param("ew") QueryWrapper<UserCallStatistics> wrapper);

	@Select("SELECT log.* FROM dt_user_call_statistics log JOIN dt_user u ON log.user_id = u.id ${ew.customSqlSegment}")
	List<UserCallStatistics> find(@Param("ew") QueryWrapper<UserCallStatistics> wrapper);

}
